<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>绑定邮箱</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="../../css/public-heder-Reset.css">
	<link rel="stylesheet" href="../../css/input-button.css">
</head>
<body>
	<!-- page_box -->
	<div class="page-box">
		<!-- header -->
		<header class="page-header">
			<a href="Uaccount.html" class="back"></a>
			<p class="pege-name">绑定邮箱</p>
		</header>
		<div class="liubai"></div>
		<!-- header /-->
		<!-- User-information -->
		<div class="User-information">
			<div class="User-form">
				<div class="mailbox">
					<label>
						<input type="text" class="Email" style="font-size:17px" placeholder="请输入邮箱地址" maxlength="20">
						<span class="phone"></span>
					</label>
				</div>
			</div>	
			<div class="submit-btn">
				<button style="border:none" disabled="disabled">确定</button>
			</div>
		</div>
		<!-- User-information / -->
	</div>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/http-url.js"></script>
<script type="text/javascript">
	$(function(){
		// 输入正确的邮箱格式
    	$("input").on("keyup", function (event){
    		var Email=$(".Email").val().trim();
    		var patt = new RegExp(/\w+@(\w|\d)+\.\w{2,}/i);
    		if(patt.test(Email)){
    			sureSubmit()
    		}else {
    			cannotSubmit()
    		}
    	})
    	$('.submit-btn').find('button').click(function(){
    		submitOk()
    		var Email=$(".Email").val().trim();
    		ajaxRequest('/api/user/ca/be/'+Email+'',null,function(data){
    			
    		},false)
		})
	});
</script>
</body>
</html>